package com.chenwy.example.visible;

/**
 * 类中可见
 */
public class PrivateVisible {

    private int prop1;

    private int prop2;

    PrivateVisible(){

    }

    private PrivateVisible(int prop1,int prop2){
        this.prop1 = prop1;
        this.prop2 = prop2;
    }

    public class  V{
        private PrivateVisible visible = new PrivateVisible(1,2);
    }

    public static void main(String[] args) {
        PrivateVisible visible = new PrivateVisible(1,2);
        System.out.println(visible.prop1);
        System.out.println(visible.prop2);
    }
}
